package com.spring.mvc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.mvc.bean.T0008maesDepa;
import com.spring.mvc.dao.T0008maesDepaMapper;




@Service
public class DepartamentoServiceImpl implements DepartamentoService{
		

	
	@Autowired
	private T0008maesDepaMapper t0008maesDepaMapper;


	@Override
	public T0008maesDepa selectByCodDepa(String cod_depa) throws Exception {
		T0008maesDepa t0008maesDepa=t0008maesDepaMapper.selectByPrimaryKey(cod_depa);
		return t0008maesDepa;
	}

	@Override
	public List<T0008maesDepa> selectAllDepartamento() throws Exception {
		
		List<T0008maesDepa> listaDepartamento=t0008maesDepaMapper.selectAllDepartamento();

		return listaDepartamento;
	}

	
}
